<h3 class="title1 ico1">Danh sách File Excel Của năm</h3>
<?php if(!empty($filename)){?>
<table class="tbl" cellspacing="0" cellpadding="0" border="0">
<thead>
	<tr>
    	<th width="50">{{helper:lang line='global:year'}}</th>
        <th>{{helper:lang line='global:month'}}</th>
        <th>{{helper:lang line='global:name_room'}}</th>
        <!--<th>Hình</th>-->
        <th width="100">{{helper:lang line='global:note'}}</th>
		<th width="100">{{helper:lang line='global:download'}}</th>
    </tr>
    <tbody>
			<?php 
			
			if(count($filename)>0):$i=0;foreach($filename as $item):echo "<tr>";if(substr($item["tenfile"],-3) != "php"):$i++;?>
            <td><?php echo $year?></td>
            <td>  <?php echo $month?></td>
            <td>  <?php echo $item["phongban"]?></td>
            <td> <?php  if(is_file("./uploads/bang_cham_cong/$year/$month/".$item["tenfile"].".php"))echo "<a for='detail_dialog".$i."' id='iddiglog".$i."' class='diglog' href=''> Xem ghi chu </a>"?></td>
            <td><a href="<?php echo site_url("uploads/bang_cham_cong/$year/$month/".$item["tenfile"].".xls")?>"> Tải về</a>
           	<div title="Phòng ban: <?php echo $item["phongban"]?>" style="display:none" id="detail_dialog<?php echo $i?>"><?php echo @ file_get_contents("./uploads/bang_cham_cong/$year/$month/".$item["tenfile"].".php");?></div>
            <?php echo "</tr>";endif;endforeach;endif?>

		</tbody>
</thead>
</table>
    <script>
		dia();
	</script><?php }else{?>
<h5 class="nodata"> {{helper:lang line="import:empty"}} </h5>
 <?php }?>